package pers.zc.activiti.hivepool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author Lin FuYuan
 * @description  连接池配置参数
 * @date 2020/1/2
 */
@Data
@ConfigurationProperties(prefix = HiveConnectionProperties.DS,ignoreUnknownFields = false )
public class HiveConnectionProperties {
    static final String DS="spring.hive.datasource.commonconfig";
    private int initialSize = 10;
    private int minIdle;
    private int maxIdle;
    private int maxActive;
    private int maxWait;
    private int timeBetweenEvictionRunsMillis;
    private int minEvictableIdleTimeMillis;
    private String validationQuery;
    private boolean testWhileIdle;
    private boolean testOnBorrow;
    private boolean testOnReturn;
    private boolean poolPreparedStatements;
    private int maxOpenPreparedStatements;
    private String filters;

    private String mapperLocations;
    private String typeAliasPackage;
}
